package com.example.fileoperate.exception;/*
 * @Auther:hantianbing
 * @Date:2023/7/27
 * @Description:
 */

public enum ReadFileExceptoin implements FailCause{
    FILE_TYPE_WRONG(1000, "文件类型错误"),
    FILE_NOT_EXIST(1001, "文件目录不存在")
    ;

    private Integer code;

    private String message;

    ReadFileExceptoin(Integer code, String message){
        this.code = code;
        this.message  = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
